﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace OutputTree
{
    public class OutputItem
    {
        public string Text { get; set; }
        public Color Color { get; set; }
        public TreeViewItem TreeViewItem { get; set; }
        public event OutputTree.TreeNodeItemContent.NodeCreatedHandler NodeContentCreated;

        public OutputItem(string text, Color color)
        {
            this.Text = text;
            this.Color = color;
        }

        public void RaiseNodeContentCreated(TreeNodeItemContent content)
        {
            NodeContentCreated(this, new TreeNodeItemRoutedEventArgs(content, this));
        }
    }
}
